<?php

namespace app\admin\controller;

use think\Controller;
use think\Db;


class Middleware extends Controller
{

    //检测用户是否登录
    public function islogin()
    {
        if (!session('useradmin')) {
            return $this -> error('请登录', url('admin/index/login'));
        }
    }
}
